#ifndef COLORWIDGET_H
#define COLORWIDGET_H

#include "global.h"

namespace Ui {
class ColorWidget;
}

class ColorWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ColorWidget(const QColor &,QWidget *parent = nullptr);
    ~ColorWidget();

    QColor GetColor();

protected:
    void init();

protected slots:
    void on_Button_Black_clicked();
    void on_Button_Gray_clicked();
    void on_Button_Green_clicked();
    void on_Button_Red_clicked();
    void on_Button_Orangle_clicked();
    void on_Button_White_clicked();
    void on_Button_Blue_clicked();
    void on_Button_Purple_clicked();
    void on_Button_Yellow_clicked();
    void on_Button_Brown_clicked();

signals:
    void ColorChange();

private:
    Ui::ColorWidget *ui;

    QColor color;
};

#endif // COLORWIDGET_H
